package alya;

public class TimeOfWork {

    private String k;
    private int p;
    private int f;
    private int o1;
    private double o2;

    public TimeOfWork(String k, int p, int f) {
        this.k = k;
        this.p = p;
        this.f = f;
    }

    public String getK() {
        return k;
    }

    public void setK(String k) {
        this.k = k;
    }

    public int getP() {
        return p;
    }

    public void setP(int p) {
        this.p = p;
    }

    public int getF() {
        return f;
    }

    public void setF(int f) {
        this.f = f;
    }

    public int differenceInHours(int p, int f) {
        return p - f;
    }

    public double differenceInPercentage(int p, int f) {
        return (p - f) * 100 / p;
    }
}
